<template>
    <div>
        <h1>子组件</h1>
        <input type="text" v-model="username">
        <input type="text" v-model="age">
    </div>
</template>

<script setup>
const username = defineModel('username')
const age = defineModel('age')
</script>

<style lang="scss" scoped></style>